package com.schematic.flixel.examples
{
import org.flixel.FlxState;
import org.flixel.FlxText;
import org.flixel.FlxG;


public class ExampleState extends FlxState
{

    public function ExampleState()
    {
        super();
    }
   

	
    override public function create():void
    {
        var text:FlxText = new FlxText(10, 10, FlxG.width - 20);
        text.text = "[ESC] Back to main menu"
        add(text);
		

    }
    
    override public function update():void
    {
        if (FlxG.keys.ESCAPE)
            FlxG.state = new ExamplesMenu();

        super.update();
		
    }
}
}